package com.web.base.user.message;

import com.blue.validation.group.SaveModel;
import com.blue.validation.group.UpdateModel;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Null;
import javax.validation.constraints.Size;
import java.io.Serializable;

/**
 * 用户信息请求内容
 * 
 * @author 代码由 blue-code 框架生成
 * @since 1.0 2017年04月16日
 */
 public class UserInfoRequest implements Serializable
{
	private static final long serialVersionUID = 1L;
	
	@NotNull(groups = { UpdateModel.class }, message = "编号不能为空")
	@Null(groups={SaveModel.class}, message="编号必须为空")
	private Integer id;
	@Size(min = 0, max = 20, groups = { SaveModel.class, UpdateModel.class }, message = "真名姓名长度[0-20]")
	private String realname;
	@Size(min = 0, max = 1, groups = { SaveModel.class, UpdateModel.class }, message = "性别长度[0-1]")
	private String gender;
	@Size(min = 0, max = 20, groups = { SaveModel.class, UpdateModel.class }, message = "身份证号长度[0-20]")
	private String identityNo;
	@Size(min = 0, max = 200, groups = { SaveModel.class, UpdateModel.class }, message = "身份证正面长度[0-200]")
	private String identityFacePic;
	@Size(min = 0, max = 200, groups = { SaveModel.class, UpdateModel.class }, message = "身份证背面长度[0-200]")
	private String identityBackPic;
	
	public UserInfoRequest()
	{
	}
	
	public Integer getId()
	{
		return this.id;
	}
	
	public void setId(Integer id)
	{
		this.id = id;
	}
	
	public String getRealname()
	{
		return this.realname;
	}
	
	public void setRealname(String realname)
	{
		this.realname = realname;
	}
	
	public String getGender()
	{
		return this.gender;
	}
	
	public void setGender(String gender)
	{
		this.gender = gender;
	}
	
	public String getIdentityNo()
	{
		return this.identityNo;
	}
	
	public void setIdentityNo(String identityNo)
	{
		this.identityNo = identityNo;
	}
	
	public String getIdentityFacePic()
	{
		return this.identityFacePic;
	}
	
	public void setIdentityFacePic(String identityFacePic)
	{
		this.identityFacePic = identityFacePic;
	}
	
	public String getIdentityBackPic()
	{
		return this.identityBackPic;
	}
	
	public void setIdentityBackPic(String identityBackPic)
	{
		this.identityBackPic = identityBackPic;
	}
	
}
